.class public Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;
.super Landroidx/fragment/app/Fragment;
.source "FragmentGpsSettings.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;


# instance fields
.field private bluetoothSettins:Landroid/view/View;

.field private bluetoothStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

.field cancelDeviceDetection:Ljava/lang/Runnable;

.field private customSource:Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

.field private data:Llt/noframe/gpsfarmguide/Data;

.field discoveryHandler:Landroid/os/Handler;

.field handler:Landroid/os/Handler;

.field private internalSettigs:Landroid/view/View;

.field private internalStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

.field lastUpdate:J

.field listener:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps$onUiListener;

.field locationUpdateListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$LocationUpdateListener;

.field private mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

.field private final myBluetoothReceiver:Landroid/content/BroadcastReceiver;

.field resumed:Z

.field private selectView:Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;

.field statusListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;

.field private toast:Llt/noframe/gpsfarmguide/widgets/MegaToast;

.field private uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

.field private usbSettings:Landroid/view/View;

.field private usbStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 51
    invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V

    const-wide/16 v0, 0x0

    .line 66
    iput-wide v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->lastUpdate:J

    const/4 v0, 0x0

    .line 82
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->resumed:Z

    .line 86
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$1;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->statusListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;

    .line 116
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$2;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$2;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->locationUpdateListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$LocationUpdateListener;

    .line 131
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$3;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$3;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    .line 143
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$4;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$4;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->cancelDeviceDetection:Ljava/lang/Runnable;

    .line 151
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$5;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$5;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->listener:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps$onUiListener;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;
    .locals 0

    .line 51
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    return-object p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;
    .locals 0

    .line 51
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    return-object p0
.end method

.method static synthetic access$200(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;
    .locals 0

    .line 51
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    return-object p0
.end method

.method static synthetic access$300(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Landroid/bluetooth/BluetoothAdapter;
    .locals 0

    .line 51
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    return-object p0
.end method

.method static synthetic access$400(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V
    .locals 0

    .line 51
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->discoverDevices()V

    return-void
.end method

.method static synthetic access$500(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;
    .locals 0

    .line 51
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    return-object p0
.end method

.method private discoverDevices()V
    .locals 4

    .line 335
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    if-nez v0, :cond_0

    invoke-static {}, Landroid/bluetooth/BluetoothAdapter;->getDefaultAdapter()Landroid/bluetooth/BluetoothAdapter;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    .line 336
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    if-eqz v0, :cond_2

    .line 337
    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isEnabled()Z

    move-result v0

    if-nez v0, :cond_1

    .line 338
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.bluetooth.adapter.action.REQUEST_ENABLE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/16 v1, 0x17

    .line 339
    invoke-virtual {p0, v0, v1}, Landroidx/fragment/app/Fragment;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 341
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->clearAdapter()V

    .line 342
    :try_start_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 343
    :catch_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "android.bluetooth.device.action.FOUND"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 344
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->startDiscovery()Z

    .line 345
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->discoveryHandler:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->cancelDeviceDetection:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 346
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->discoveryHandler:Landroid/os/Handler;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->cancelDeviceDetection:Ljava/lang/Runnable;

    const-wide/16 v2, 0x1b58

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 347
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->setState(I)V

    goto :goto_0

    .line 350
    :cond_2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f1100a8

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->showToast(Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private initBluetooth()V
    .locals 2

    .line 315
    invoke-static {}, Landroid/bluetooth/BluetoothAdapter;->getDefaultAdapter()Landroid/bluetooth/BluetoothAdapter;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    .line 316
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    if-nez v0, :cond_0

    .line 317
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f1100a8

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->showToast(Ljava/lang/String;)V

    return-void

    .line 321
    :cond_0
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getExternalGPSState()Llt/farmis/libraries/externalgps/providers/Status;

    move-result-object v0

    .line 322
    sget-object v1, Llt/farmis/libraries/externalgps/providers/Status;->INDETERMINE:Llt/farmis/libraries/externalgps/providers/Status;

    if-ne v0, v1, :cond_1

    .line 323
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->discoverDevices()V

    :cond_1
    return-void
.end method

.method public static newInstance()Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;
    .locals 1

    .line 169
    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;-><init>()V

    return-object v0
.end method

.method private showToast(Ljava/lang/String;)V
    .locals 1

    .line 329
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->toast:Llt/noframe/gpsfarmguide/widgets/MegaToast;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/widget/Toast;->cancel()V

    .line 330
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0, p1}, Llt/noframe/gpsfarmguide/widgets/MegaToast;->showTextLong(Landroid/content/Context;Ljava/lang/String;)Llt/noframe/gpsfarmguide/widgets/MegaToast;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->toast:Llt/noframe/gpsfarmguide/widgets/MegaToast;

    return-void
.end method


# virtual methods
.method public connect()V
    .locals 3

    .line 362
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 363
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPSThread;->disconnect()V

    .line 366
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->getSelectedDevice()Landroid/bluetooth/BluetoothDevice;

    move-result-object v0

    if-nez v0, :cond_1

    const v0, 0x7f1101e3

    .line 368
    invoke-virtual {p0, v0}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->showToast(Ljava/lang/String;)V

    return-void

    .line 372
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    .line 374
    :cond_2
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->getSelectedDevice()Landroid/bluetooth/BluetoothDevice;

    move-result-object v1

    new-instance v2, Llt/farmis/libraries/externalgps/nmea/NmeaParser;

    invoke-direct {v2}, Llt/farmis/libraries/externalgps/nmea/NmeaParser;-><init>()V

    invoke-virtual {v0, v1, v2}, Llt/farmis/libraries/externalgps/ExternalGPS;->startBluetoothExternalGPS(Landroid/bluetooth/BluetoothDevice;Llt/farmis/libraries/externalgps/nmea/NmeaParser;)V

    .line 376
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->getSelectedDevice()Landroid/bluetooth/BluetoothDevice;

    move-result-object v1

    invoke-virtual {v1}, Landroid/bluetooth/BluetoothDevice;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->setLastDevice(Ljava/lang/String;)V

    .line 377
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->setState(I)V

    return-void
.end method

.method public disconnect()V
    .locals 2

    .line 382
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 383
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPSThread;->disconnect()V

    .line 385
    :cond_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const-string v1, ""

    invoke-static {v0, v1}, Llt/noframe/gpsfarmguide/utils/LastPickPrefrences;->setLastExternalGps(Landroid/content/Context;Ljava/lang/String;)V

    .line 386
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->setState(I)V

    return-void
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .locals 2

    .line 280
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 281
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->data:Llt/noframe/gpsfarmguide/Data;

    .line 282
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->data:Llt/noframe/gpsfarmguide/Data;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f0901df

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/Data;->setMainFrame(Landroid/widget/FrameLayout;)V

    return-void
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    .line 288
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V

    const/16 p3, 0x17

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 293
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->initBluetooth()V

    :cond_0
    return-void
.end method

.method public onBackPressed()V
    .locals 3

    .line 392
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-direct {v1}, Llt/noframe/gpsfarmguide/views/FragmentSettings;-><init>()V

    const/4 v2, 0x3

    invoke-virtual {v0, v1, v2}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setCurrentFragment(Landroidx/fragment/app/Fragment;I)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2

    .line 174
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p3, p0}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setOnBackPressed(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;)V

    .line 175
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p3

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/Data;->getToolbarheight(Landroid/content/Context;)I

    move-result p3

    const/4 v0, 0x0

    invoke-virtual {p2, v0, p3, v0, v0}, Landroid/view/ViewGroup;->setPadding(IIII)V

    const p3, 0x7f0c005b

    .line 176
    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 178
    new-instance p2, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    invoke-direct {p2, p3, p1}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;-><init>(Landroid/content/Context;Landroid/view/View;)V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    const/4 p2, 0x1

    .line 180
    invoke-virtual {p0, p2}, Landroidx/fragment/app/Fragment;->setHasOptionsMenu(Z)V

    .line 181
    new-instance p3, Landroid/os/Handler;

    invoke-direct {p3}, Landroid/os/Handler;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->handler:Landroid/os/Handler;

    .line 182
    new-instance p3, Landroid/os/Handler;

    invoke-direct {p3}, Landroid/os/Handler;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->discoveryHandler:Landroid/os/Handler;

    .line 184
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p3}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p3

    const v1, 0x7f1100b7

    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Landroidx/appcompat/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V

    .line 186
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->setState(I)V

    .line 187
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->listener:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps$onUiListener;

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->setOnUiInteraction(Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps$onUiListener;)V

    const p3, 0x7f09011e

    .line 190
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->selectView:Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;

    const p3, 0x7f09013d

    .line 191
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalSettigs:Landroid/view/View;

    const p3, 0x7f090073

    .line 192
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothSettins:Landroid/view/View;

    const p3, 0x7f090289

    .line 193
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbSettings:Landroid/view/View;

    const p3, 0x7f090233

    .line 195
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    const p3, 0x7f090232

    .line 196
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    const p3, 0x7f090234

    .line 197
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    .line 199
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    invoke-virtual {p3, p2}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->setMode(I)V

    .line 200
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    const/4 v0, 0x3

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->setMode(I)V

    .line 201
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbStatus:Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    const/4 v1, 0x2

    invoke-virtual {p3, v1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->setMode(I)V

    .line 211
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->selectView:Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$6;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$6;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    invoke-virtual {p3, v1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->setOnSelecteGPSType(Lkotlin/jvm/functions/Function1;)V

    .line 219
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->selectView:Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;

    invoke-virtual {p3, p2, p2}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->setSelected(IZ)V

    .line 221
    sget-object p3, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {p3}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object p3

    invoke-virtual {p3}, Llt/farmis/libraries/externalgps/ExternalGPS;->getLocationListeners()Ljava/util/List;

    move-result-object p3

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->locationUpdateListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$LocationUpdateListener;

    invoke-interface {p3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 222
    sget-object p3, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {p3}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object p3

    invoke-virtual {p3}, Llt/farmis/libraries/externalgps/ExternalGPS;->getStatusListeners()Ljava/util/List;

    move-result-object p3

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->statusListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;

    invoke-interface {p3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 224
    sget-object p3, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {p3}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object p3

    invoke-virtual {p3}, Llt/farmis/libraries/externalgps/ExternalGPS;->getExternalGPSState()Llt/farmis/libraries/externalgps/providers/Status;

    move-result-object p3

    .line 226
    sget-object v1, Llt/farmis/libraries/externalgps/providers/Status;->INDETERMINE:Llt/farmis/libraries/externalgps/providers/Status;

    if-eq p3, v1, :cond_0

    .line 228
    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->statusListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;

    invoke-interface {v1, p3}, Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;->onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;)V

    .line 230
    sget-object v1, Llt/farmis/libraries/externalgps/providers/Status;->CONNECTED:Llt/farmis/libraries/externalgps/providers/Status;

    if-ne p3, v1, :cond_0

    .line 231
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->uiHelper:Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/widgets/ButtonHelperGps;->setState(I)V

    .line 235
    :cond_0
    new-instance p3, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    invoke-direct {p3}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;-><init>()V

    iput-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->customSource:Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    .line 236
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->customSource:Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    new-instance v0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$7;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$7;-><init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V

    invoke-virtual {p3, v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;->activate(Lcom/google/android/gms/maps/LocationSource$OnLocationChangedListener;)V

    .line 249
    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->customSource:Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    invoke-virtual {p3, p2}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;->setActive(Z)V

    .line 250
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->getLocationsources()Ljava/util/List;

    move-result-object p2

    iget-object p3, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->customSource:Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    invoke-interface {p2, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 251
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->startFree()V

    return-object p1
.end method

.method public onDestroyView()V
    .locals 2

    .line 398
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroyView()V

    .line 399
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setFragmentTouchListener(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentTouchListener;)V

    .line 400
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/views/ActivityDrawer;->setOnBackPressed(Llt/noframe/gpsfarmguide/views/ActivityDrawer$FragmentOnBackPressed;)V

    .line 402
    :try_start_0
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getLocationListeners()Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->locationUpdateListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$LocationUpdateListener;

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 403
    :catch_0
    :try_start_1
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getStatusListeners()Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->statusListener:Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 405
    :catch_1
    :try_start_2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_2
    .catch Ljava/lang/IllegalArgumentException; {:try_start_2 .. :try_end_2} :catch_2

    .line 407
    :catch_2
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->getLocationsources()Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->customSource:Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public onPause()V
    .locals 2

    .line 309
    :try_start_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->myBluetoothReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 310
    :catch_0
    :try_start_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->mBluetoothAdapter:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 311
    :catch_1
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onPause()V

    return-void
.end method

.method public onResume()V
    .locals 1

    .line 299
    invoke-super {p0}, Landroidx/fragment/app/Fragment;->onResume()V

    .line 300
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->resumed:Z

    if-nez v0, :cond_0

    .line 301
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->initBluetooth()V

    const/4 v0, 0x1

    .line 302
    iput-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->resumed:Z

    :cond_0
    return-void
.end method

.method public onTabSelected(I)V
    .locals 3

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/16 v2, 0x8

    if-eq p1, v0, :cond_2

    const/4 v0, 0x2

    if-eq p1, v0, :cond_1

    const/4 v0, 0x3

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 271
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalSettigs:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 272
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothSettins:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 273
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbSettings:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 265
    :cond_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalSettigs:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 266
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothSettins:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 267
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbSettings:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 259
    :cond_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->internalSettigs:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 260
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->bluetoothSettins:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 261
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->usbSettings:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void
.end method
